﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site2.Master" Inherits="System.Web.Mvc.ViewPage<DTO.Models.SURVEY>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CMS CIT - <%= Model.ID == 0 ? "THÊM " : "CẬP NHẬT " %> THÔNG TIN KHẢO SÁT
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% Html.EnableClientValidation(); %> 
    <% using(Html.BeginForm("GetForm", "Survey", FormMethod.Post, new {id="frmSurvey"})){%>
        <div class="dung-section frm-insert">
		<div class="dung-section-title"><%= Model.ID == 0 ? "THÊM " : "CẬP NHẬT " %></div>
		<div class="dung-section-content">
        <%= Html.ValidationSummary() %>
			<div class="frm-control">
				<div class="dung-right">
					<input type="submit" name="submit" class="dung-button" value="Lưu" />
                    <input type="button" class="dung-button" value="Bỏ qua" onclick="boqua()" />
				</div>
				<div class="clearer">&nbsp;</div>
			</div>
			<div>
                <p>
                    <b><%= Html.LabelFor(model => model.IsTop) %></b>&nbsp;&nbsp;
                    <%= Html.CheckBox("IsTop", Model.IsTop) %>
                </p>
				<p>
                    <b><%= Html.LabelFor(model => model.Question) %></b><br />
                    <%= Html.TextBoxFor(model => model.Question, new {@class = "dung-textbox", size = 50, maxlength = 250}) %>
                </p>
                <p>
                    <b><%= Html.LabelFor(model => model.Answer1) %></b><br />
                    <%= Html.TextBoxFor(model => model.Answer1, new { @class = "dung-textbox", size = 50, maxlength = 250 }) %>
                    <span>&nbsp;&nbsp;&nbsp;<b>Số lượt đồng ý : <%= Model.Total1.ToString() %></b></span>
                </p>
                <p>
                    <b><%= Html.LabelFor(model => model.Answer2) %></b><br />
                    <%= Html.TextBoxFor(model => model.Answer2, new { @class = "dung-textbox", size = 50, maxlength = 250 }) %>
                    <span>&nbsp;&nbsp;&nbsp;<b>Số lượt đồng ý : <%= Model.Total2.ToString() %></b></span>
                </p>
                <p>
                    <b><%= Html.LabelFor(model => model.Answer3) %></b><br />
                    <%= Html.TextBoxFor(model => model.Answer3, new { @class = "dung-textbox", size = 50, maxlength = 250 }) %>
                    <span>&nbsp;&nbsp;&nbsp;<b>Số lượt đồng ý : <%= Model.Total3.ToString() %></b></span>
                </p>
                <p>
                    <b><%= Html.LabelFor(model => model.Answer4) %></b><br />
                    <%= Html.TextBoxFor(model => model.Answer4, new { @class = "dung-textbox", size = 50, maxlength = 250 }) %>
                    <span>&nbsp;&nbsp;&nbsp;<b>Số lượt đồng ý : <%= Model.Total4.ToString() %></b></span>
                </p>
                <p>
                    <b><%= Html.LabelFor(model => model.Answer5) %></b><br />
                    <%= Html.TextBoxFor(model => model.Answer5, new { @class = "dung-textbox", size = 50, maxlength = 250 }) %>
                    <span>&nbsp;&nbsp;&nbsp;<b>Số lượt đồng ý : <%= Model.Total5.ToString() %></b></span>
                </p>
                <p>
                    <b><%= Html.LabelFor(model => model.Answer6) %></b><br />
                    <%= Html.TextBoxFor(model => model.Answer6, new { @class = "dung-textbox", size = 50, maxlength = 250 }) %>
                    <span>&nbsp;&nbsp;&nbsp;<b>Số lượt đồng ý : <%= Model.Total6.ToString() %></b></span>
                </p>
			</div>
		</div>
	</div>

    <% } %>

    <script type="text/javascript">
        function boqua() {
            window.location = "/Survey/SurveyList";
        }
    </script>
</asp:Content>

